<?php
/**
 * SelectFile.php
 *
 * This file contains the classes needed to generate the form to submit a script for compilation
 * @package PHPZendOpcacheBundle
 * @author Steven King <kingrst@gmail.com>
 * @copyright Copyright (C) 2014, Steven King
 * @license http://opensource.org/licenses/GPL-3.0 GNU General Public License, version 3
 */

namespace PHP\ZendOpCacheBundle\Form\File;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;

/**
 * Class FileSelect
 * @package PHPZendOpcacheBundle\Form\File
 * @abstract
 * @subpackage SelectFile
 * @author Steven King <kingrst@gmail.com>
 */
class FileSelect extends AbstractType {
  /**
   * @access public
   * @abstract
   * @param FormBuilderInterface $builder
   * @param array $options
   * @return void
   */
  public function buildForm(FormBuilderInterface $builder, array $options) {
    $builder->add('File Path', 'text')
      ->add('Compile', 'submit')
      ->setMethod('POST');
  }

  /**
   * @access public
   * @abstract
   * @return string
   */
  public function getName() {
    return 'FileSelect_FullPath';
  }
}
?>
